'use client';

import { useEffect } from 'react';
import { useRouter } from 'next/navigation';
import { useSelector } from 'react-redux';
import { RootState } from '@/stores';

export default function MoodLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  const router = useRouter();
  const loginUser = useSelector((state: RootState) => state.loginUser);

  // 不再重复检查登录状态，依赖BasicLayout的检查
  if (!loginUser.id) {
    return null;
  }

  return <>{children}</>;
} 